import request from '@/utils/request'

// 查询集采道地药材清单列表
export function listGenuine(query) {
  return request({
    url: '/system/genuine/list',
    method: 'get',
    params: query
  })
}

// 查询集采道地药材清单详细
export function getGenuine(id) {
  return request({
    url: '/system/genuine/' + id,
    method: 'get'
  })
}

// 新增集采道地药材清单
export function addGenuine(data) {
  return request({
    url: '/system/genuine',
    method: 'post',
    data: data
  })
}

// 修改集采道地药材清单
export function updateGenuine(data) {
  return request({
    url: '/system/genuine',
    method: 'put',
    data: data
  })
}

// 删除集采道地药材清单
export function delGenuine(id) {
  return request({
    url: '/system/genuine/' + id,
    method: 'delete'
  })
}
